package pk.nak.client.activity;

import pk.nak.client.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.widget.Toast;

public class IntellitrendsActivity extends Activity {
	/*
	private MapController mc;
	private GeoPoint gp;
	private MapView mv;
	*/
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        
        Intent aIntent = new Intent(this , LoginActivity.class);
        startActivity(aIntent);
        
        
        /*
        Intent toolKitIntent = new Intent(this , ToolKitActivity.class);
        startActivity(toolKitIntent);
        */
        
        /*
        Intent nearestEatoutIntent = new Intent(this , NearestEatoutActivity.class);
        startActivity(nearestEatoutIntent);
        */
        
        /*
        Intent eatoutdetails = new Intent(this,EatOutDetailsActivity.class);
        EatOut eo = new EatOut("Pizza Hut", "Fast Food", 25.5);
        for ( int i = 1 ; i <= 10 ; i ++ ){
        	eo.Menu().addItem(new EatOutMenuItem("M "+i, "T "+i, i * 3));
        }
        eatoutdetails.putExtra(ExtraIDs.SELECTED_EATOUT_SERIALIZABLE, eo);
        startActivity(eatoutdetails);
        */
        
        /*
        setContentView(R.layout.main);
        this.mv = (MapView)findViewById(R.id.mapView);
        this.mv.displayZoomControls(true);
        this.mv.setBuiltInZoomControls(true);
        
        this.gp = new GeoPoint(21422555, 39825857);
        this.mc = this.mv.getController();
        this.mc.animateTo(this.gp);
        this.mc.setZoom(13);
        //21.422555,39.825857
         */
        
    }

	
    @Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// TODO Auto-generated method stub
		super.onCreateOptionsMenu(menu);
		MenuInflater mi = getMenuInflater();
		mi.inflate(R.menu.main_menu, menu);
		return true;
	}


	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		// TODO Auto-generated method stub
		super.onOptionsItemSelected(item);
		
		switch(item.getItemId()){
		case R.id.menuEatOuts:
			startActivity(new Intent(this,AboutActivity.class));
			break;
		case R.id.menuToast:
			Toast.makeText(this, "Hello World", Toast.LENGTH_SHORT).show();
			break;
		default:
			Toast.makeText(this, "UnImplemented Option", Toast.LENGTH_SHORT).show();
			break;
		}
		return true;
	}

}